package com.itqf.xiaomi.nemus;

/**
 * projectName: xiaomi_store
 *
 * @author: 赵伟风
 * time: 2021/9/20 14:35
 * description:
 */
public enum  ResponseCode {

    COMMON_SUCCESS_CODE("001","通用正确码"),
    COMMON_UN_FAIL_CODE("500","未知错误码"),
    USER_NO_LOGIN_CODE("401","用户没有登录，请登录后再操作"),
    USER_LOGIN_NULL_CODE("002","用户名或密码不能为空"),
    CART_HASED_PRODUCT("002","该商品已在购物车，数量 +1"),
    USER_LOGIN_ILLEGAL_CODE("003","用户名不合法(以字母开头，允许5-16字节，允许字母数字下划线)"),
    HAS_ADD_LIKE_COLLECTION("003","该商品已经添加收藏，请到我的收藏查看"),
    COMMON_FAIL_CODE("004","通用错误码");


    private String code;
    private String msg;

    ResponseCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
